/*
package com.huqing.icu.rentplatform.dao.report;

import com.huqing.icu.dto.report.ReportTypeConfigQueryDto;
import com.huqing.icu.model.report.ReportTypeConfig;
import com.huqing.icu.rentplatform.mapper.ReportTypeConfigMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class ReportTypeConfigDao {

    @Resource
    private ReportTypeConfigMapper reportTypeConfigMapper;

    public Integer save(ReportTypeConfig reportTypeConfig) {
        if (reportTypeConfig.getId() == null) {
            reportTypeConfigMapper.insert(reportTypeConfig);
        } else {
            reportTypeConfigMapper.updateById(reportTypeConfig);
        }
        return 1;
    }

    public Integer insert(ReportTypeConfig reportTypeConfig) {
        return reportTypeConfigMapper.insert(reportTypeConfig);
    }

    public Integer updateById(ReportTypeConfig reportTypeConfig) {
        return reportTypeConfigMapper.updateById(reportTypeConfig);
    }

    public Integer getNumByCondition(ReportTypeConfigQueryDto queryDto) {
        return reportTypeConfigMapper.getNumByCondition(queryDto);
    }

    public List<ReportTypeConfig> selectByCondition(ReportTypeConfigQueryDto queryDto) {
        return reportTypeConfigMapper.selectByCondition(queryDto);
    }
}
*/
